import axios from "./http";
function uploadImg(file) {
    return axios.post("/oss/upload",file,{
                    headers:{'Content-Type':'multipart/form-data'}  
                        //    headers:{'Content-Type':'image/png,image/jpg'}
        });
}
function insertMsg(params){
        return axios.post("/message/insert",params,{
         headers:{'Content-Type':'application/json'}
        })
    }
export default {
    //在这里导出所有函数
    uploadImg,
    insertMsg
};